[Top] [Prev] [Next] [Bottom]
[Contents]
SaGetNInputValue
Returns the Nth occurrence of the named form input element.
#include "SaRnHtml.h"
char* SaGetNInputValue(char* element, int num);
Arguments
- element
- specifies the name of the form input element's value to get.
- num
- specifies which value to get if there are multiple input element values for element.
Return Values
Returns the Nth (num-1) occurrence of the form input element. Returns NULL, if element is not present in the input stream or if num
is invalid.
This call is used for multiple values for this input element (for example, a multi-select list). The first value has a num of 0
. The return value is not copied data but a pointer to a stored value and should not be free'd or modified.
int i, Number;
char* value;
Number =SaGetNumInputValues("MultiFormElementName");
for(i=0; i<Number; i++)
{
value = SaGetNInputValue("MultiFormElementName", i);
}
See Also
[Top] [Prev] [Next] [Bottom]
[Contents]
info@bluestone.com
Copyright © 1997, Bluestone. All rights
reserved.